package org.lds.hotkey.console.business.currhotkey.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author lidongsheng
 * @since 2024-07-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class CurrHotKey implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * app主键
     */
    private Long appId;

    /**
     * key
     */
    @TableField("`key`")
    private String key;

    /**
     * 过期时间（毫秒）
     */
    private Long expireTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
